wayland: Don't allocate a full size SHM buffer when drawing using OpenGL
authorJonas Ådahl <jadahl@gmail.com>
Tue, 24 Feb 2015 10:10:07 +0000 (18:10 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Feb 2015 01:22:03 +0000 (20:22 -0500)
commitf13157f4bbde5a505ca885fbcc342c809b572f01
tree300ea57138bc691dab63debf570fcf56cc9d641f
parentaa81262f116d32936abc62324e170ade1fc68578
wayland: Don't allocate a full size SHM buffer when drawing using OpenGL

Before this patch, we'd always allocate a full size SHM buffer via
the wl_shm_pool, even though it would never be used. Instead allocate a
logical 1x1 cairo image surface.

https://bugzilla.gnome.org/show_bug.cgi?id=745076
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdkwindow-wayland.c